package com.syq.face;

import android.app.Application;
import android.util.Log;

import com.syq.face.fragment.RootFragment;
import com.syq.face.model.LoginInfo;
import com.syq.face.model.UserInfo;

public class MyApplication extends Application {
    public static final String TAG = "MyApplication";
    private static LoginInfo myself;
    private static UserInfo userInfo;

    private static RootFragment rootFragment;

    public static RootFragment getRootFragment() {
        return rootFragment;
    }

    public static void setRootFragment(RootFragment rootFragment) {
        MyApplication.rootFragment = rootFragment;
    }

    public static LoginInfo getMyself() {
        return myself;
    }
    public static UserInfo getUserInfo() {
        return userInfo;
    }

    public static void setMyself(LoginInfo myself) {
        MyApplication.myself = myself;
    }
    public static void setUserInfo(UserInfo userInfo) {
        MyApplication.userInfo = userInfo;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        
        Log.d(TAG, "onCreate: ");

    }
}
